<?xml version="1.0" encoding="UTF-8"?>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:p="http://primefaces.org/ui"
     template="../../../Template.xhtml"
>
<ui:define name="title">Add Professional Carrier</ui:define>
<ui:define name="body">


<h:form id="form">
<br/><br/>
<p:panelGrid columns="2">

<h2>Add professional Carrier</h2>
<p:commandButton ajax="false" value="Add New" action="AddProShippers.xhtml" />
   
</p:panelGrid>
<br/><br/><br/><br/>
 <p:growl id="msgs" showDetail="true"  />
    <p:dataTable id="basicDT" var="car" value="#{clientMB.listeClients('Exp','Pro')}" rows="10"
                         paginator="true"
                         paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                         rowsPerPageTemplate="5,10,15" >
      
        <p:column headerText="Id">
            <h:outputText value="#{car.idUtilisateur}" />
        </p:column>
        <p:column headerText="UserName">
        
             <h:outputText value="#{car.username}" />
       </p:column>
        
        
         <p:column headerText="Email">
              <h:outputText value="#{car.email}" />
      
        </p:column>
        
           <p:column headerText="CID">
              <h:outputText value="#{car.CID}" />
      
        </p:column>
        
        <p:column headerText="Traportation">
              <h:outputText value="" />
      
        </p:column>
        
           <p:column headerText="Status">
              <h:outputText value="#{car.statut}" />
      
        </p:column>
        
        <p:column style="width:32px;text-align: center">
             
            <p:commandButton ajax="false" action="#{clientMB.View(car.idUtilisateur)}" icon="ui-icon-search">
            </p:commandButton>
             <p:commandButton ajax="false" action="#{clientMB.edit(car.idUtilisateur)}" icon="ui-icon ui-icon-pencil">
            </p:commandButton>
            <p:commandButton ajax="false" action="#{clientMB.Supprimer(car.idUtilisateur)}" icon="ui-icon ui-icon-close">
            </p:commandButton>
         </p:column>
    </p:dataTable>
    </h:form>
 <br/><br/><br/><br/>
</ui:define>

</ui:composition>